.class Lframent/FramentMarketOrder$1;
.super Ljava/lang/Object;
.source "FramentMarketOrder.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lframent/FramentMarketOrder;->getHttpResource()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lframent/FramentMarketOrder;


# direct methods
.method constructor <init>(Lframent/FramentMarketOrder;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lframent/FramentMarketOrder$1;->this$0:Lframent/FramentMarketOrder;

    .line 68
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .prologue
    .line 72
    new-instance v4, Ljava/lang/StringBuilder;

    iget-object v5, p0, Lframent/FramentMarketOrder$1;->this$0:Lframent/FramentMarketOrder;

    # getter for: Lframent/FramentMarketOrder;->m:Lmyapp/MyApp;
    invoke-static {v5}, Lframent/FramentMarketOrder;->access$0(Lframent/FramentMarketOrder;)Lmyapp/MyApp;

    move-result-object v5

    invoke-virtual {v5}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v5, "/index.php?ctrl=app&action=getshopnew&shopid="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lframent/FramentMarketOrder$1;->this$0:Lframent/FramentMarketOrder;

    # getter for: Lframent/FramentMarketOrder;->shopid:Ljava/lang/String;
    invoke-static {v5}, Lframent/FramentMarketOrder;->access$1(Lframent/FramentMarketOrder;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "&datatype=json"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 76
    .local v3, "url":Ljava/lang/String;
    const-string v4, "getHttpResource---------"

    invoke-static {v4, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 78
    iget-object v4, p0, Lframent/FramentMarketOrder$1;->this$0:Lframent/FramentMarketOrder;

    # getter for: Lframent/FramentMarketOrder;->m:Lmyapp/MyApp;
    invoke-static {v4}, Lframent/FramentMarketOrder;->access$0(Lframent/FramentMarketOrder;)Lmyapp/MyApp;

    move-result-object v4

    invoke-static {v3, v4}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v2

    .line 82
    .local v2, "str":Ljava/lang/String;
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 84
    .local v1, "object":Lorg/json/JSONObject;
    const-string v4, "error"

    invoke-virtual {v1, v4}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "true"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 101
    .end local v1    # "object":Lorg/json/JSONObject;
    :cond_0
    :goto_0
    return-void

    .line 88
    .restart local v1    # "object":Lorg/json/JSONObject;
    :cond_1
    const-string v4, "msg"

    invoke-virtual {v1, v4}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    move-result v4

    if-eqz v4, :cond_0

    goto :goto_0

    .line 95
    .end local v1    # "object":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 97
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method
